<%@ page language="java" contentType= "text/html" pageEncoding="UTF-8"%>
<%@include file="/include/common/griduihead1.jsp"%>
<%@include file="/include/common/griduihead2.jsp"%>
<%
	page1.getPageTitle().setTitle("%%{pagetitle}%%");
%>
<jm:form>
<jm:layout postion="north">
	<jm:toolbar />
	<jm:pageTitle /> 
	<jm:sp id="sp1" data="<%=Utils.TAG_FORM%>" tabSize="1">
		<jm:tab colModel="300px;*">
			<jm:org name="org" caption="部門" subOrg="true"/>
			<jm:field caption="工號" >
				<input type="text" name="hrnum1" 
					onchange="if(this.value.trim() != '')$P.cmp({me:this,cmpid:'cmp001',hrnum:this.value,async:false});" 
					ajaxsucc="$('span[id=chname1]').text(jo.data['chname']);"
					ajaxfail="$('span[id=chname1]').text('');me.value='';" />
				<span id="chname1"></span>
			</jm:field>
		</jm:tab>
	</jm:sp> 
	<jm:error></jm:error>
</jm:layout>
<jm:layout postion="center" export="true">
	<jm:table id="grid1" dataSet="<%=ret.getSerchResult()%>"  >
		<jm:thead>
			<tr>
				<td width="30px">序號</td>
				<td width="100px">部門</td>
				<td width="100px">工號</td>
				<td width="*">姓名</td>
			</tr>
		</jm:thead>
		<jm:tbody>
			<jm:tr>
				<jm:td cid="rownumber"></jm:td>
				<jm:td cid="chfullname"></jm:td>
				<jm:td cid="hrnum"></jm:td>
				<jm:td cid="chname"></jm:td>
			</jm:tr>
		</jm:tbody>
	</jm:table>
</jm:layout>
<jm:layout postion="south"/>
</jm:form>
<jm:script><script type="text/javascript" charset="UTF-8">
</script></jm:script>
<%@include file="/include/common/griduiend.jsp"%>